package practice;

import java.util.Scanner;

/**
 * @author: snail_mount
 * @date: 20/1/8 21:01
 * @description:用switch来写月份
 */
public class SwitchDemo {
    //    1到12月，分为春夏秋冬
    public static void main(String[] args) {
//        手输
        System.out.println("请输入月份（1-12）");
        Scanner sc = new Scanner(System.in);
        int month = sc.nextInt();
        switch (month) {
            case 1:
            case 2:
            case 3:
                System.out.println("春季");
                break;
            case 4:
            case 5:
            case 6:
                System.out.println("夏季");
                break;
            case 7:
            case 8:
            case 9:
                System.out.println("秋季");
                break;
            case 10:
            case 11:
            case 12:
                System.out.println("冬季");
                break;
            default:
                System.out.println("请输入1-12月");
                break;
        }


    }
}
